<?php
$_page = $_GET['_page'];
?>

<fb:tabs>
    <fb:tab-item href="index.php?_page=compose" title="Compose SMS" <?php if (empty($_page) || $_page == "compose") echo 'selected="true"';?>/>
  <fb:tab-item href="index.php?_page=contacts" title="Contacts" <?php if ($_page == "contacts") echo 'selected="true"';?>/>
  <fb:tab-item href="index.php?_page=sent" title="Sent Items" <?php if ($_page == "sent") echo 'selected="true"';?>/>
  <fb:tab-item href="index.php?_page=drafts" title="Drafts" <?php if ($_page == "drafts") echo 'selected="true"';?>/>
</fb:tabs>
